package com.ky.circle.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.ky.circle.entity.Events;
import com.ky.circle.mapper.EventsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 活动表 前端控制器
 * </p>
 *
 * @author lcr
 * @since 2024-06-19
 */
@RestController
@RequestMapping("/circle/events")
public class EventsController {

    @Autowired
    private EventsMapper eventsMapper;

    @RequestMapping("/selectEventsList")
    public R selectEventsList() {
        List<Events> events = eventsMapper.selectList(null);
        return R.ok(events);
    }

}

